package com.ruoyi.applet.service.impl;

import com.ruoyi.applet.domain.Goods;
import com.ruoyi.applet.domain.GoodsDoc;
import com.ruoyi.applet.mapper.ElasticSearchMapper;
import com.ruoyi.applet.service.ElasticSearchRepository;
import com.ruoyi.applet.service.ElasticSearchService;
import org.springframework.data.elasticsearch.core.SearchHit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ElasticSearchServiceImpl implements ElasticSearchService {

    @Resource
    ElasticSearchRepository elasticSearchRepository;

    @Resource
    ElasticSearchMapper elasticSearchMapper;

    @Override
    public List<Goods> ElasticGood() {
        return elasticSearchMapper.ElasticGood();
    }

}